Component({
  mixins: [],
  data: {
    animation:'',
		rules:'',
		// bg:{
		// 	url:"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01MlgDx620xZqoGKPEG_!!4161056916.png",
		// 	width:680,
		// 	height:843
		// }
  },
  props: {
  },
  onInit(){
    //console.info("1111",this.props.rules)

    this.setData({
      ...getApp().pifu.rulesPage,
      rules:this.props.rules
    })


  },
  didMount() {
    this.animation = my.createAnimation();

    this.animation.translate('0%','150%').step()
    this.setData({ animation: this.animation.export() })

  },
  didUpdate() {},
  didUnmount() {},
  methods: {



    closeList(){
      
      this.animation.translate('0%','-150%').step()
      this.setData({ animation: this.animation.export() })

      setTimeout(() => {
        this.$page.setData({
          isScroll:false,
          isShowRules:false
        })
      }, 400);
    }

  },
});